linear differential equation with constant coefficients type 1 and type 2